<?php 
    if($query->num_rows()>0){
        $row = $query->row();
    }
?>
<?php echo form_open('avis_admin/update_cat/'.$row->id) ?>
<table class="list"   width="100%">
    <thead>
        <tr>
            <td width="300px"><label>Cateroty name: </label><input type="text" name="txtCat" value="<?php echo $row->name; ?>" size="50"/></td>
            <td width="100px"><input type="submit" name="submit" value="MODIFY"/></td>    
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>
<?php echo form_close()?>